package com.hue.springcloud.service.impl;

import com.hue.springcloud.service.OrderService;
import org.springframework.stereotype.Component;

/*
    用来做服务降级的类
 */
@Component
public class OrderSerivceImpl implements OrderService {
    @Override
    public String ok() {
        return "ok()发生统一的服务降级";
    }

    @Override
    public String timeout() throws InterruptedException {
        return "timeout()发生统一的服务降级";
    }
}
